import{p as e}from"./DrFvzlh8agutd.js";import{_ as n}from"./MpnPZlTSagutd.js";const i="/assets/DjJoeDqY22HqeX.mjs";let s;async function c(){if(s==null){const t=await n(()=>import("./C_r-OMWN1VyUMR.js"),[]);t.GlobalWorkerOptions.workerSrc=i,s=t}return s}const a=e("pdf-basic");async function p(t){const{getDocument:r}=await c(),o=r(t);return a.assert(o,"doc is empty"),o}async function u(t){if(t==null)return;const o=await(await p(t))?.promise;return a.assert(o,"pdf empty"),o}export{c as g,u as p};